package com.dongdongshop.pojo.cart;

import com.dongdongshop.pojo.order.TbOrderItem;

import java.io.Serializable;
import java.util.List;

/**
 * 商家购物车实体
 * @Author Eayon
 * @Date 2020/3/11 16:51
 */
public class Cart implements Serializable {
    //商家id
    private String sellerId;
    //商家名称
    private String sellerName;
    //购物车明细(可理解为购物车页面中，该商家下所有的商品明细)(本实体类就可以理解为商家购物车实体)
    private List<TbOrderItem> orderItemList;

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public List<TbOrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<TbOrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    public Cart(String sellerId, String sellerName, List<TbOrderItem> orderItemList) {
        this.sellerId = sellerId;
        this.sellerName = sellerName;
        this.orderItemList = orderItemList;
    }

    public Cart() {
    }
}
